﻿using System.Web;
using System.Web.Optimization;

namespace Front
{
    public class BundleConfig
    {
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/3rdparty").Include(
                        "~/Scripts/jquery.validate*",
                        "~/Scripts/bootstrap.js",
                        "~/Scripts/respond.js",                        
                        "~/Scripts/toastr.min.js",                        
                        "~/Scripts/angular-ui/ui-bootstrap-tpls.js"                        
                        ));
            
            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(                        
                        "~/Scripts/jquery.validate*"
                        ));

            bundles.Add(new ScriptBundle("~/bundles/ngmodule").Include(                
                        "~/Scripts/Lib/init.js",
                        "~/Scripts/Lib/notification.js",
                        "~/Scripts/Lib/sessionStorageSvc.js",
                        "~/Scripts/Module/init.js",
                        "~/Scripts/Module/config.js",
                        "~/Scripts/Module/dictionaryCacheSvc.js",
                        "~/Scripts/Module/localizationCacheSvc.js",
                        "~/Scripts/Module/cultureCacheSvc.js",
                        "~/Scripts/Module/staticCacheSvc.js",
                        "~/Scripts/Module/settings.js",
                        "~/Scripts/Module/run.js",
                        "~/Scripts/Module/BaseApiSvc.js",                        
                        "~/Scripts/BaseCtrls/baseEvents.js",
                        "~/Scripts/BaseCtrls/BaseEditCtrl.js",
                        "~/Scripts/BaseCtrls/BaseListCtrl.js",
                        "~/Scripts/BaseCtrls/BaseEditTabsCtrl.js",
                        "~/Scripts/Directives/sortColumn.js",
                        "~/Scripts/Directives/showValidation.js",
                        "~/Scripts/Filters/dictionary.js",
                        "~/Scripts/Filters/translate.js",
                        "~/Scripts/Header/cultureSelectionCtrl.js"                        
            ));

            bundles.Add(new ScriptBundle("~/bundles/policy").Include(
                        "~/Scripts/Policy/apiSvc.js",
                        "~/Scripts/Policy/listCtrl.js",
                        "~/Scripts/Policy/editCtrl.js"                        
            ));

            bundles.Add(new ScriptBundle("~/bundles/setting").Include(
                        "~/Areas/Admin/Scripts/Setting/apiSvc.js",
                        "~/Areas/Admin/Scripts/Setting/listCtrl.js",
                        "~/Areas/Admin/Scripts/Setting/editCtrl.js"                        
            ));

            bundles.Add(new ScriptBundle("~/bundles/log").Include(
                        "~/Areas/Admin/Scripts/Log/apiSvc.js",
                        "~/Areas/Admin/Scripts/Log/listCtrl.js",
                        "~/Areas/Admin/Scripts/Log/editCtrl.js"
            ));

            bundles.Add(new ScriptBundle("~/bundles/role").Include(
                        "~/Areas/Admin/Scripts/Role/apiSvc.js",
                        "~/Areas/Admin/Scripts/Role/listCtrl.js",
                        "~/Areas/Admin/Scripts/Role/editCtrl.js"
            ));

            bundles.Add(new ScriptBundle("~/bundles/user").Include(
                        "~/Areas/Admin/Scripts/User/apiSvc.js",
                        "~/Areas/Admin/Scripts/User/listCtrl.js",
                        "~/Areas/Admin/Scripts/User/editCtrl.js",
                        "~/Areas/Admin/Scripts/User/roleListCtrl.js",
                        "~/Areas/Admin/Scripts/User/roleEdit.js",
                        "~/Areas/Admin/Scripts/User/editTabsCtrl.js",
                        "~/Areas/Admin/Scripts/User/userRoleSvc.js"
            ));

            bundles.Add(new ScriptBundle("~/bundles/dictionary").Include(
                        "~/Areas/Admin/Scripts/Dictionary/apiSvc.js",
                        "~/Areas/Admin/Scripts/Dictionary/listCtrl.js",
                        "~/Areas/Admin/Scripts/Dictionary/editCtrl.js",
                        "~/Areas/Admin/Scripts/Dictionary/editTabsCtrl.js",
                        "~/Areas/Admin/Scripts/Dictionary/itemEdit.js",
                        "~/Areas/Admin/Scripts/Dictionary/itemListCtrl.js",
                        "~/Areas/Admin/Scripts/Dictionary/dictionaryItemSvc.js"
            ));

            bundles.Add(new ScriptBundle("~/bundles/culture").Include(
                        "~/Areas/Admin/Scripts/Culture/apiSvc.js",
                        "~/Areas/Admin/Scripts/Culture/listCtrl.js",
                        "~/Areas/Admin/Scripts/Culture/editCtrl.js"
            ));

            bundles.Add(new ScriptBundle("~/bundles/cache").Include(
                        "~/Areas/Admin/Scripts/Cache/apiSvc.js",
                        "~/Areas/Admin/Scripts/Cache/listCtrl.js"                        
            ));

            bundles.Add(new ScriptBundle("~/bundles/localization").Include(
                        "~/Areas/Admin/Scripts/Localization/apiSvc.js",
                        "~/Areas/Admin/Scripts/Localization/listCtrl.js",
                        "~/Areas/Admin/Scripts/Localization/editCtrl.js"
            ));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/font-awesome.css",
                      "~/Content/bootstrap.css",                      
                      "~/Content/metro-bootstrap.css",
                      "~/Content/toastr.css",
                      "~/Content/base.css",
                      "~/Content/home.css"
                      ));
        }
    }
}
